package com.jiangjiang.eshop.order.price.v1.calculator.impl;

import com.jiangjiang.eshop.order.dto.CouponDTO;
import com.jiangjiang.eshop.order.dto.OrderInfoDTO;
import com.jiangjiang.eshop.order.price.v1.calculator.CouponCalculator;
import org.springframework.stereotype.Component;

/**
 * @Author Jianghaowen
 * @Date 2021/7/14
 * @Description: TODO
 * @Version V1.0
 **/
@Component
public class DefaultCouponCalculator implements CouponCalculator {
    /**
     * 默认优惠券金额计算
     * @param infoDTO 订单信息
     * @param couponDTO 优惠券信息
     * @return 优惠券金额
     * @throws Exception
     */
    @Override
    public Double calculate(OrderInfoDTO infoDTO, CouponDTO couponDTO) throws Exception {
        return 0.0;
    }
}
